<?php if (!defined('THINK_PATH')) exit();?><link rel="stylesheet" href="__ROOT__/apps/weiba/_static/weiba.css" type="text/css" media="screen" charset="utf-8" />
<div id="col3" class="st-index-right">
  <div class="right-wrap">
    <div class="right-list recommend-post clearfix">
      <fieldset class="inter-line">
        <a onclick="new_refresh();"  class="right"><i class="ico-refresh"></i></a>
        <legend class="inter-txt">帖子推荐</legend>
      </fieldset>
      <div id="catelist">
        <?php if(is_array($post_recommend_list)): ?><?php $i = 0;?><?php $__LIST__ = $post_recommend_list?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$vo): ?><?php ++$i;?><?php $mod = ($i % 2 )?><dl>
            <dt><a href="<?php echo U('weiba/Index/postDetail',array('post_id'=>$vo['post_id']));?>"><?php echo (getshort($vo["title"],20)); ?> </a></dt>
            <dd class="f8"> 来自&nbsp;&nbsp;<a href="<?php echo U('weiba/Index/detail',array('weiba_id'=>$vo['weiba_id']));?>"><?php echo (getshort($vo["weiba"],5)); ?></a>&nbsp;&nbsp;<?php echo ($vo["user"]["space_link"]); ?>&nbsp;&nbsp;<?php echo (friendlydate($vo["post_time"],'Y-m-d')); ?> </dd>
          </dl><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
      </div>
    </div>
  </div>
</div>
<div id="col5" class="st-index-main">
  <div class="st-bg">
    <!-- 导航 -->
    <div class="feed-nav clearfix border-b">
      <div class="mod-feed-tab" id="mod-feed-tab">
        <ul class="inner-feed-nav">
          <?php if($_GET['feed_type']=='weiba'){ $tag['weiba'] = 'current'; }
            elseif($_GET['feed_type']=='cweiba'){ $tag['cweiba'] = 'current'; }
            else{ $tag['public'] = 'current'; } ?>
          <li class="<?php echo ($tag["public"]); ?>"><a href="<?php echo U('public/Profile/appList',array('tab'=>'weiba','type'=>'weiba','feed_type'=>'','uid'=>$uid));?>">发表的帖子</a></li>
          <li class="<?php echo ($tag["weiba"]); ?>"><a href="<?php echo U('public/Profile/appList',array('tab'=>'weiba','type'=>'weiba','feed_type'=>'weiba','uid'=>$uid));?>">加入的微吧</a></li>
          <li class="<?php echo ($tag["cweiba"]); ?>"><a href="<?php echo U('public/Profile/appList',array('tab'=>'weiba','type'=>'weiba','feed_type'=>'cweiba','uid'=>$uid));?>">创建的微吧</a></li>
        </ul>
      </div>
    </div>
  <?php if($data){ ?>
  <div class="post-circle clearfix">
    <div class="post-list">
      <ul>
        <?php if(is_array($data)): ?><?php $i = 0;?><?php $__LIST__ = $data?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$vo): ?><?php ++$i;?><?php $mod = ($i % 2 )?><li>
            <div class="post-tit"> <a class="tit" target="_blank" href="<?php echo U('weiba/Index/postDetail',array('post_id'=>$vo['post_id']));?>"><?php echo (getshort($vo["title"],14)); ?> </a>
              <?php if($vo['top']==2){ ?>
              <i class="ico-toTop"></i>
              <?php } ?>
              <?php if($vo['recommend']==1){ ?>
              <i class="ico-essence"></i>
              <?php } ?>
              <?php if($vo['digest']==1){ ?>
              <i class="ico-essence"></i>
              <?php } ?>
            </div>
            <div class="post-prof"> <a href="<?php echo U('weiba/Index/postDetail',array('post_id'=>$vo['post_id']));?>"><?php echo (getshort(t($vo["content"]),100)); ?></a>
              <?php if(count($vo['img']) != '0'): ?><div class="post-img clearfix">
                  <?php if($vo['img'][0] != ''): ?><div class="f-post-img"><a class="tit" target="_blank" href="<?php echo U('weiba/Index/postDetail',array('post_id'=>$vo['post_id']));?>"><img src="<?php echo ($vo['img'][0]); ?>"/></a></div><?php endif; ?>
                  <?php if($vo['img'][1] != ''): ?><div class="f-post-img"><a class="tit" target="_blank" href="<?php echo U('weiba/Index/postDetail',array('post_id'=>$vo['post_id']));?>"><img src="<?php echo ($vo['img'][1]); ?>"/></a></div><?php endif; ?>
                  <?php if($vo['img'][2] != ''): ?><div class="f-post-img"><a class="tit" target="_blank" href="<?php echo U('weiba/Index/postDetail',array('post_id'=>$vo['post_id']));?>"><img src="<?php echo ($vo['img'][2]); ?>"/></a></div><?php endif; ?>
                </div><?php endif; ?>
            </div>
            <div class="post-info f8">
              <div class="left"><a class="weiba-name" href="<?php echo U('weiba/Index/detail',array('weiba_id'=>$vo['weiba_id']));?>"><span><?php echo (getshort($vo["weiba"],5)); ?></span></a></div>
              <div class="right post-info-control"> <span><?php echo (friendlydate($vo["post_time"])); ?>&nbsp;发布</span><span title="浏览"><i class="i-post-scan"></i>(<?php echo ($vo["read_count"]); ?>)</span> <span title="评论"><i class="i-post-comment"></i>(<?php echo ($vo["reply_count"]); ?>)</span>
                <?php if(($vo['digg'])  ==  "undigg"): ?><span title="赞"><?php endif; ?>
                <?php if(($vo['digg'])  ==  "digg"): ?><span title="赞"><?php endif; ?>
                <i class="i-post-alike"></i>(<?php echo ($vo["praise"]); ?>)</span></div>
            </div>
          </li><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
        <div class="page"><?php echo ($html); ?></div>
      </ul>
    </div>
  </div>
  <?php }else{ ?>
  <dl class="feed_list" style="min-height:500px">
  <div style="padding-top:80px;text-align:center">
  <p class="mb10"><i class="icon-bed"></i></p>
  <p style="color:#333">暂时没有可显示的内容哟~</p>
  </div>
  </dl>
  <?php } ?>
  </div>
</div>
<script type="text/javascript">
function new_refresh() {
    $.post(U('weiba/Index/catelist'),{fid:1}, function(data) {
  	  $('#catelist').html(data);
    }, 'json');
    return false ;
}

</script>